package com.yzf.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.yzf.dao.DemoDao;

@Repository 
public class DemoDaoImpl implements DemoDao {

	@Autowired
	JdbcTemplate jdbcTemplate;
	
	@Override
	public Object demo() {
		String sql = "select * from test";
		List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
		return list;
	}

}
